﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

[CustomEditor(typeof(Camera))]
public class TestInspector : Editor
{
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        if (GUILayout.Button("test1")) {
            Debug.Log("test1");
            Camera camera = this.target as Camera;

            if (camera != null ) 
            {
                camera.depth++;
            }

        }
    }

}
